package com.luguangtao.api;

import com.luguangtao.bean.Insurance;

import com.luguangtao.config.Page;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "server01")
public interface InsuranceApi {

    //列表+分页+模糊
    @RequestMapping("lists")
    public Page<Insurance> lists(@RequestParam(defaultValue = "1") Integer pageNum, @RequestParam Double am1, @RequestParam Double am2);

    //列表+分页+模糊
    @RequestMapping("lists")
    public Page<Insurance> lists(@RequestParam(defaultValue = "1") Integer pageNum);

}
